Skip to content

[codex] Add migration endpoint#407

Merged
ArnavAgrawal03 merged 2 commits into
mainfrom
arnav/client-migrate-endpoint
Jun 19, 2026
Merged

[codex] Add migration endpoint#407
ArnavAgrawal03 merged 2 commits into
mainfrom
arnav/client-migrate-endpoint

Conversation

@ArnavAgrawal03

@ArnavAgrawal03 ArnavAgrawal03 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Adds a target-side /migrate/document endpoint plus sync/async SDK migrate(...) helpers to copy documents from one Morphik URI to another while preserving source document IDs. The SDK strips managed metadata, preserves folder and end-user scope, copies summaries when possible, and records source provenance under _morphik_migration; reruns skip existing target docs by default. Ingestion now aborts if the initial document metadata insert fails, preventing migration from returning a false created status when a preserved ID already exists outside the target app scope. The Python SDK version was bumped to 1.2.4 and published to PyPI: https://pypi.org/project/morphik/1.2.4/. Validation: uv run python -m build, uv run twine check dist/*, uv run twine upload --non-interactive dist/*, and python3 -m py_compile for touched files passed; pytest was not run because this local Python lacks pytest and no usable SDK test venv is present in this workspace.

@ArnavAgrawal03 ArnavAgrawal03 marked this pull request as ready for review June 18, 2026 22:15
@ArnavAgrawal03 ArnavAgrawal03 marked this pull request as draft June 18, 2026 22:33
@ArnavAgrawal03 ArnavAgrawal03 marked this pull request as ready for review June 19, 2026 00:11
@ArnavAgrawal03 ArnavAgrawal03 merged commit 7daa94a into main Jun 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant